package com.xudow.app.newui.base;

import com.xudow.app.ui.BaseActivity;

import butterknife.ButterKnife;
import butterknife.Unbinder;

/**
 * 作者：LownChen on 2016/5/25 13:16
 */
public abstract class BaseUiActivity extends BaseActivity {

    Unbinder unbinder;
    @Override
    public void onContentChanged() {
        super.onContentChanged();
        unbinder = ButterKnife.bind(this);
        initData();
        initListener();
    }

    /**
     * 初始化数据
     */
    protected abstract void initData();

    /**
     * 初始化监听
     */
    protected abstract void initListener();

    @Override
    protected void onDestroy() {
        super.onDestroy();
        unbinder.unbind();
    }
}
